package com.example.mall.dto.token;

import com.example.mall.common.core.enumeration.LoginType;
import com.example.mall.dto.validator.TokenPassword;
import javax.validation.constraints.NotBlank;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TokenGetDTO {
    @NotBlank(message = "{token.account}")
    private String account;

    @TokenPassword(min=6, max=32, message = "{token.password}")
    private String password;

    /** 登录形式 */
    private LoginType loginType;
}
